export const SUCCESS_CODE = 0;

export interface ResponseData<T> {
  success: any;
  code: number;
  message: string;
  data: T;
}

export interface PaginationData<T> {
  pagination?: {
    page: number;
    size: number;
    current: number;
    total: number;
    skip: number;
    pageCount: number;
    currentPageIndex: number;
  };
  pageSize?: number;
  total?: number;
  current?: number;
  list: T[];
}

export type ResponsePaginationData<T> = ResponseData<PaginationData<T>>;

export type QueryPaginationParams = { page?: number; pageSize?: number };
